content = []
with open('./excel.txt') as fp:  
    content = fp.readlines()

for val in content:
    print(val)
    with open('excel_back.txt', 'a+') as f:
        f.write('%s\n' % val.replace("/",".")[0:7].rstrip(".") )

